from safc.models import WebGLModel, Interaction, OrigWebGLModel
from django.contrib import admin

class InteractionModif(admin.ModelAdmin):
	fields = ['user_id_ref', 'webgl_id_refs', 'num_images', 'case_info', 'selections', 'datetime', 'milli']
	list_display = ['num_images', 'datetime']
	list_filter = ['datetime']
	search_fields = ['num_images']

admin.site.register(Interaction, InteractionModif)

class WebGLModif(admin.ModelAdmin):
	fields = ['gender', 'age', 'file_location']

admin.site.register(WebGLModel, WebGLModif)

class OrigWebGLModif(admin.ModelAdmin):
	fields = ['gender', 'webgl_id_ref', 'age', 'file_location']
	
admin.site.register(OrigWebGLModel, OrigWebGLModif)

